package m3d30;

import java.io.FileOutputStream;
import java.io.IOException;

//追加续写
public class mOutputStream {
    public static void main(String[] args) throws IOException {
        //true在末尾追加   false创建覆盖原文件
        FileOutputStream fos = new FileOutputStream("D:\\ideaproject\\basicproject\\day02\\src\\m3d30\\n.txt",true);
        fos.write("哈哈哈好".getBytes());
        fos.write("\r\n".getBytes());
        fos.close();
    }
}
